package com.zlyx.easy.core.model;

import java.io.Serializable;

/**
 * @Auth 赵光
 * @Desc 描述
 * @Date 2019年7月27日
 */
public class UserModel extends JsonModel implements Serializable {

	private static final long serialVersionUID = 1L;

	private String name;

	private int age;

	public UserModel() {
	}

	public UserModel(String name) {
		this.name = name;
	}

	public UserModel(int age) {
		this.age = age;
	}

	public UserModel(String name, int age) {
		this.name = name;
		this.age = age;
	}

	public String getName() {
		return name;
	}

	public UserModel setName(String name) {
		this.name = name;
		return this;
	}

	public int getAge() {
		return age;
	}

	public UserModel setAge(int age) {
		this.age = age;
		return this;
	}

	public static UserModel create(String name, int age) {
		return new UserModel(name, age);
	}

}
